<?php
	Class NavigationView
	{
		public static $navigationURL = "Page";
		public static $memberUrl = "MemberID";
		
		public static $addMember = "addMember";
		public static $viewList = "viewList";
		public static $viewDetailedList = "viewDetailedList";
		public static $viewSpecificMember = "viewSpecificMember";
		
		public static function GetSelectedMember(MemberCatalogModel $memberCatalog)
		{
			$idFromUrl = $_GET["MemberID"];
			
		   return $memberCatalog->GetMember($idFromUrl);	
		}
		
		public static function UserWantsToViewSpecificMember()
		{
			if(isset($_GET[self::$memberUrl]) && 
			$_GET[self::$memberUrl] == $_GET["MemberID"])
			{
				return true;
			}
			else 
			{
				return false;
			}
		}
		
		public static function UserWantsToAddMember()
		{
			if(isset($_GET[self::$navigationURL]) && 
			$_GET[self::$navigationURL] == self::$addMember)
			{
				return true;
			}
			else 
			{
				return false;
			}
		}
		
		public static function UserWantsToViewList()
		{
			if(isset($_GET[self::$navigationURL]) && 
			$_GET[self::$navigationURL] == self::$viewList)
			{
				return true;
			}
			else 
			{
				return false;
			}
		}
		
		public static function UserWantsToViewDetailedList()
		{
			if(isset($_GET[self::$navigationURL]) && 
			$_GET[self::$navigationURL] == self::$viewDetailedList)
			{
				return true;
			}
			else 
			{
				return false;
			}
		}
	}
?>